let isLoading = true;

	
	
//fetch('https://raw.githubusercontent.com/DaKoala/fetch-example/master/people.json')
fetch('https://raw.githubusercontent.com/tonychunxizhu/j2test/master/people')
    .then(res => res.json())
    .then(json => console.log(json)) //[{ name: "张三", age: 18 }, { name: "李四", age: 20 }, { name: "王五", age: 22 }]
    .catch(err => console.error(err))
    .finally(() => {
        isLoading = false;
        console.log('Finished loading!!');
    })

